11. Quiz: Get the Starter Code

Hydration Reminder Code

The code for this app can be found in the Lesson10-Hydration-Reminder folder of the Toy App Repository.

If you need to a refresher on how the code is organized, please refer to the concept where we introduced the code flow.

Once you have downloaded and are familiar with how the code works, answer the following questions:

Question 1

What is the id of the view which triggers incrementWater in its onClick attribute?

SOLUTION: ib_water_increment

Question 2

What PreferenceUtilities method would you call for adding one to the current water count?

SOLUTION: `incrementWaterCount`

What is the resource used for the plug image seen in the main_activity.xml layout?

SOLUTION: ic_power_grey_80px